<?php

namespace app\common\model\lottery;

use app\common\model\BaseModel;
use app\common\model\lottery\ActiveGoods;
use app\common\model\lottery\ActivePrize;
/**
 * 抽奖-活动会场模型
 * Class Active
 * @package app\common\model\lottery
 */
class Active extends BaseModel
{
    protected $name = 'lottery_active';

    /**
     * 关联活动商品
     */
    public function goods()
    {
        return $this->hasMany(ActiveGoods::class, 'active_id');
    }

    /**
     * 关联奖品
     */
    public function prize()
    {
    	return $this->hasMany(ActivePrize::class, 'active_id');
    }

}